<template>
	<view class="msgContent">
		<rich-text :nodes="content"></rich-text>
	</view>
</template>

<script>
	export default{
		data(){
			return {
				content: '',
				id: ''
			}
		},
		onLoad(e) {
			this.id = e.id || ''
			this.getContent()
		},
		methods:{
			getContent(){
				this.$api.default.request('index/getxieyi_dea', {
					id: this.id
				}, 'POST', false).then((res) => {
					if (res.code) {
						this.content = res.data;
					}
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.msgContent{
		padding: 20rpx 30rpx;
		
	}
</style>